package com.bw.wxy.mvp.view.user.adapter;

import com.bw.wxy.R;
import com.bw.wxy.mvp.model.entity.UserMenuEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class UserMenuAdapter extends BaseQuickAdapter<UserMenuEntity, BaseViewHolder> {
    public UserMenuAdapter() {
        super(R.layout.item_user_menu);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserMenuEntity item) {
        helper.setText(R.id.user_menu_item_name,item.name);
        helper.setImageResource(R.id.user_menu_icon,item.imgId);
    }
}

